Systems and methods for trusted path secure communication

ABSTRACT

A system for establishing a trusted path for secure communication between client devices and server devices, such as between an account holder and a financial institution, can provide the core security attributes of confidentiality (of the parties), integrity (of the information), anti-replay (protection against replay fraud) and/or anti-tampering (protection against unauthorized changes to information being exchanged and/or modules that generate and communicate such information). A messaging layer implementation in favor of a transport layer implementation can provide a trusted path. This infrastructure features secure cryptographic key storage, and implementation of a trusted path built using the cryptographic infrastructure. The trusted path protects against unauthorized information disclosure, modification, or replays. These services can effectively protect against Man-in-the-Middle, Man-in-the-Application, and other attacks.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a division of and asserts priority to application Ser. No. 16/266,702, filed on Feb. 4, 2019, and entitled “Systems and Methods for Trusted Path Secure Communication”, which claims priority to U.S. patent application Ser. No. 15/000,913, filed Jan. 19, 2016, which matured into U.S. Pat. No. 10,237,073, issued Mar. 19, 2019, and entitled “Systems and Methods for Trusted Path Secure Communication”, which claims the benefit of U.S. Provisional Patent Application No. 62/105,148, filed on Jan. 19, 2015. The aforementioned applications are each herein incorporated in their entirety.

FIELD OF THE INVENTION

This disclosure generally relates to techniques for secure exchange of information between two computing systems and, in particular, to systems and methods that can provide protection against man-in-the-middle and/or man-in-the-machine attacks.

BACKGROUND

An authentication credential is generally considered to be an artifact submitted as a means of identity attestation. An electronic authentication credential is transmitted through a computer network with the purpose of allowing a party to gain access to a remote computer system. A commonly used authentication credential is the password; however, adversaries routinely defeat passwords through keyboard loggers and other techniques. Regulators such as the Federal Financial Institutions Examination Council (FFIEC) permit banks to continue to use passwords, but the banks must augment with additional credentials. Even if an adversary were to defeat one credential, then the additional credentials would constitute further hurdles that would hopefully stop the attack.

Security practitioners typically classify authentication credentials in four broad categories:

-   -   Something you know     -   Something you have     -   Something you are     -   Somewhere you are

Best practice recommendation employ an authentication credential from at least two of the first three categories. Service providers such as banks often wish to continue leveraging passwords or other means of proving “something you know” due to their inherently low cost and simple means of distribution; however, in some cases, banks switch from passwords to biometrics such as fingerprint sensors. In response to the FFIEC ruling mandating multi-factor authentication, the second most popular factor employed in on-line banking is “something-you-have” implemented through an identification of the user's machine. If an adversary were to steal a user's password but launch an attack from the adversary's (non-registered) machine, then the adversary would not gain access due to the failure of an authentication credential.

Subsequent to the FFIEC ruling, many banks adopted machine identification. The banks placed a cookie in the user's browser and prohibited access unless the client's machine could prove possession of the cookie. Adversaries quickly learned to defeat the cookie through malware. The FFIEC issued a subsequent ruling that disallowed cookies unless they were augmented with additional controls. Financial Services is one of the first industries to execute the upgrade from one-factor authentication to multiple factors of authentication. Whether user biometrics or machine identification is used for authentication, in both cases, the second factor is something-you-have as offered through human biometric (e.g. user fingerprint, retina scan, etc.) or the machine e-biometric.

SUMMARY

In various embodiments, the techniques described herein can serve the high-security needs of financial services; however, practically any mobile application with a need for security may leverage the solution provided by one or more embodiments. The underlying architecture of the machine e-biometric, in various embodiments, is an infrastructure for financial grade cryptographic services. This infrastructure focuses on secure cryptographic key storage, and implementation of a trusted path built using the cryptographic infrastructure. The client mobile application (client app) compiles and links with the a data-collection module (e.g., a Software Development Kit (SDK)). The trusted path according to some embodiments can securely connect the data-collection module operating within the context of the client application, a remotely located server such as a service provider's, the server residing in a data center, etc.

The trusted path according to some embodiments can protect against unauthorized information disclosure, modification, or replays. These services effectively protect against Man-in-the-Middle, Man-in-the-Application, and other attacks. Using the trusted path according to some embodiments, the data-collection module may provide to the customer and/or another server the information to support a wide variety of information services such as:

-   -   Authentication e-biometric     -   Detection of root or malware infection     -   Device location     -   Certificate pinning     -   Signature based transactions     -   Device interrogation; and identification of device risk         indicators

The trusted path according to some embodiments can offer equally secure communication in both directions. Using the channel from the server to the device, the server may deliver information. For example:

-   -   Passwords and One-time-passwords     -   Patterns to search when detecting root or malware infections     -   Notifications and messages         By establishing a highly secure trusted path between the         data-collection module and the server, the applications can         enjoy the benefits of a secure channel connecting an application         to its devices.         Transport Vs. Message:

A Client system such as APPLE Push Network (APN) notification leverages transport-level security, while in various embodiments, a trusted path uses message-level security. Transport and message-layer security each have their respective pros and cons, as highlighted below.

Anti-replay: Transport-layer security generally does not support the concept of message-level anti-replay. If a provider wishes to send an APN notification to an App on a device, then it is the provider's responsibility to ensure that the App does not suffer from replay attacks. Typically, the provider either ignores this problem, or implements a simple message-layer protocol. In contrast, in some embodiments, a trusted path implements anti-replay in the infrastructure. When using trusted path according to some embodiments, the provider never needs to be concerned with replay attacks.

Non-repudiation: Transport-layer security does not support the concept of non-repudiation. European banks, in particular, like to use non-repudiation. However, the concept is beginning to catch-on globally within financial services. Signature based authentication facilitated via a trusted path can support non-repudiation.

Encryption gaps: Client APN implements a star architecture where providers communicate with the Client APN service over a link protected with transport-level security; and Client APN communicates with the devices using transport-level security. The APN service itself is a point where messages are decrypted and re-encrypted leaving a gap of cleartext. In contrast, a trusted path in various embodiments has no cleartext gap. Financial regulators such as the Hong Kong Regulatory Authority explicitly require end-to-end security for inbound authentication credentials.

Universal channel: Client APN does not support a network-independent notification channel. The provider must use one infrastructure to send notifications to iOS devices, and a second infrastructure for Android. Using a trusted path according to some embodiments, the provider may use a unified service and a channel that can support various platforms.

Size limitations: Client APN implements a store-and-forward messaging service on top of the transport connection. This store-and-forward messaging service typically has a size limitation of 2K per message. In contrast, in some embodiments, a trusted path generally has no message size limit. The Trusted Path's size freedom effectively implies that various embodiments can support machine-machine notifications as well as machine-to-human notifications. For example, a server may distribute non-size-constrained, typically large (e.g. several megabytes), malware signature files through its notification service.

Transport Layer Security (TLS) failures: In recent years, security researchers uncovered holes in Secure Socket Layer (SSL)/TLS. When the holes were uncovered, the financial industry reacted with emergency patches which turned out to be expensive. In some embodiments, a trusted path does not depend upon SSL/TLS security.

Certificate independence: Client APN implements a single certificate on the device. Using bundles and tokens as identifiers, a message-level protocol routes messages to applications. In contrast, a server according to some embodiments uses per-application certificates. If one certificate were compromised, then there would generally be no impact upon the other certificates used by other applications.

Privacy: An APN provider may potentially attempt to send a message to an application residing on the device which has been disabled or possibly removed. The Client APN infrastructure has a copy of this message in the clear text form which cannot be delivered. In contrast, if a user removes an App on the device, or temporarily disables the App by wiping the App's cryptographic keys, then it is cryptographically impossible to decrypt an outbound message transmitted using systems according to some embodiments. European financial regulators are especially concerned with a user's ability to disassociate him or herself from a bank.

Software dependency: If Client APN wishes to add anti-replay, non-repudiation, and high-grade privacy into its infrastructure, then APN would need to implement message-level security services on top of APN which would be similar to those services that the trusted path according to some embodiments provides.

Channel universality: Client APN establishes an infrastructure for outbound communication. The providers need a different infrastructure for inbound communications. In contrast, in some embodiments, a trusted path unifies a single infrastructure and key management facility over inbound and outbound communication, which operates across both iOS and Android.

Accordingly, in one aspect, a method is provided for secure exchange of information between a user device and a server. The method includes the steps of: (a) generating by a data-collection module associated with a user device a secured object. The secured object includes: (i) an information object having information to be transmitted to a server; (ii) a header object having an anti-replay header, an anti-tamper header, or both; and (iii) an integrity object having a signature associated with the information object. The method also includes (b) transmitting, via a client app associated with the data-collection module, the secured object to the server. The transmission can occur between the user device and the server directly, or through one or more trusted and/or untrusted intermediaries.

The information object may include one or more of: a rooted device detection result, a malware detection result, a debugger-emulator attachment result, a crimeware detection result, and a location of the user device. In some embodiments, the method further includes determining by the data-collection module one or more of whether: the user device is rooted, using a root-signature list, providing a rooted device detection result; the user device and/or the client app is affected by malware, using a malware signature list, and providing a malware detection result; and whether a debugger and/or an emulator is attached to the client app, the data-collection module, and/or a security module associated with the data-collection module, providing a debugger-emulator attachment result.

In some embodiments, the method includes encrypting the information by the data-collection module and/or a security module associated with the data-collection module, to produce encrypted information. The information object may include the encrypted information. The method may include accessing by the data-collection module from the user device the information to be transmitted to the server. The information may include one or more of: (i) a fingerprint of the user device, which can be a device ID or device related information that may be used to assign a device ID, (ii) a location of the user device, and (iii) a certificate corresponding to a client app that is installed on the user device and that is associated with the data-collection module.

In some embodiments, the method may include exchanging by the data-collection module with a security module, a data element. The security module is associated with both the data-collection module and the user device. The data element may include one or more of: (i) a public key of the server, for encrypting the information to be transmitted, (ii) a private key of the data-collection module, for generating the signature, (iii) an identifier of the user device, and (iv) a location of the user device. The method may also include encrypting by the security module the data element using a first level storage key; storing by the security module, the encrypted data element in a file in a sandbox associated with the client app; encrypting the first level storage key using a second level storage key or a master key; and storing the encrypted first level storage key in another file in the sandbox. The first level storage key may be encrypted using the second level storage key, and the method may further include encrypting the second level storage key using the master key; and storing the encrypted second level storage key in yet another file in the sandbox. The method may further include dynamically generating the master key by the security module. Additional levels of storage keys may be used between the first and second levels of storage keys.

In some embodiments, the method further includes encrypting by another security module that is also installed on the user device and that is associated with another client app installed on the user device, another data element using another first level storage key; storing by the other security module, the encrypted other data element in a file in another sandbox associated with the other client app; encrypting the other first level storage key using another second level storage key or another master key associated with the other client app, where the other master key is unable to decrypt any key not encrypted by that other master key; and storing the encrypted other first level storage key in another file in the other sandbox. In this way, one client app cannot access information corresponding to another app even though both apps are installed on the same user device. The method may include, upon a request from the data-collection module, providing thereto the data element in an unencrypted form.

In some embodiments, generating the anti-replay header includes generating a message identifier; and forming the anti-replay header by including therein: (i) the message identifier, and (ii) (A) a time of collection of the information to be transmitted, and/or (B) a time of transmission of the encrypted information. Generating the anti-tamper header may include computing a message digest for one or more of: the information object; the anti-replay header; the anti-tamper header; the data-collection module; and the client app. Generating the signature may include: encrypting a message digest associated with the information object; and encrypting a message digest associated with one or more of: the anti-replay header; the anti-tamper header; the data-collection module; and the client app.

In another aspect, a system is provided for allocating data structures to a number of processing nodes, where each processing node has a respective local memory. The system includes a first processor and a first memory in electrical communication with the first processor. The first memory includes instructions that can be executed by a processing unit including the first processor or a second processor, or both. The processing unit may be in electronic communication with a memory module that includes the first memory or a second memory or both. The user device may include the processing unit.

The instructions in the first memory configure the processing unit to operate as a data-collection module, where the data-collection module is programmed to: (a) generate a secured object, and (b) transmit, via a client app associated with the data-collection module, the secured object to the server. The secured object includes: (i) an information object having information to be transmitted to a server; (ii) a header object having an anti-replay header, an anti-tamper header, or both; and (iii) an integrity object having a signature associated with the information object. In various embodiments, the instructions can program the processing unit to perform one or more of the method steps described above.

In another aspect, an article of manufacture is provided that includes a non-transitory storage medium having stored therein instructions which, when executed by a processing unit program the processing unit, which is in electronic communication with a memory module, to allocate data structures to a number of processing nodes, where each processing node has a respective local memory. The user device may include the processing unit.

The instructions in the first memory configure the processing unit to operate as a data-collection module, where the data-collection module is programmed to: (a) generate a secured object, and (b) transmit, via a client app associated with the data-collection module, the secured object to the server. The secured object includes: (i) an information object having information to be transmitted to a server; (ii) a header object having an anti-replay header, an anti-tamper header, or both; and (iii) an integrity object having a signature associated with the information object. In various embodiments, the instructions can program the processing unit to perform one or more of the method steps described above.

In another aspect, a method is provided for secure exchange of information between a user device and a server. The method includes the steps of: (a) receiving by a client app installed on a user device a secured object. The secured object includes: (i) an information object having information to be received by the client app and/or a data-collection module associated therewith, (ii) a header object having an anti-replay header and/or an anti-tamper header, and (iii) an integrity object having a signature associated with the information object. The method also includes (b) validating by the data-collection module the information object based on the signature; and (c) performing by the data-collection module an anti-replay check, and/or an anti-tamper check.

The information to be received may include information transmitted by a server. Additionally or in the alternative, the information to be received may include encrypted information, and the method may further include decrypting by the data-collection module the information object. In some embodiments, the information to be received includes one or more of: an encryption key, a root-signature list having a list of software modules indicative of a rooted user device, and a malware signature list. In some embodiments, the information to be received includes a biometric configuration file, and the method may include obtaining by the data-collection module biometric information according to the biometric configuration file.

In some embodiments, the method further includes exchanging a data element between the data-collection module and a security module. The data element may include one or more of: (i) a private key of the data-collection module, for decrypting the information object, (ii) a public key of the server, for validating the information object using the signature, (iii) at least a part of a message identifier history used in performing an anti-replay check, and (iv) a certificate associated with the client app. The method may include encrypting by the security module the data element using a first level storage key; storing by the security module, the encrypted data element in a file in a sandbox associated with the client app; encrypting the first level storage key using a second level storage key or a master key; and storing the encrypted first level storage key in another file in the sandbox. The first level storage key may be encrypted using the second level storage key, and the method may further include encrypting the second level storage key using the master key; and storing the encrypted second level storage key in yet another file in the sandbox.

In some embodiments, the method includes encrypting by another security module that is also installed on the user device and that is associated with another client app installed on the user device, another data element using another first level storage key; storing by the other security module, the encrypted other data element in a file in another sandbox associated with the other client app; encrypting the other first level storage key using another second level storage key or another master key corresponding to the other client app, the other master key being unable to decrypt any key not encrypted by that other master key; and storing the encrypted other first level storage key in another file in the other sandbox. As such, one client app may not access information corresponding to another app even though both apps are installed on the same user device. The method may also include dynamically generating the master key by the security module and/or upon a request from the data-collection module, providing thereto the data element in an unencrypted form.

Performing the anti-replay check may include accessing a message time from the anti-replay header and notifying to the client app that the information object is invalid, if the message time is older than a specified threshold. Otherwise, the method may include accessing a message identifier from the anti-replay header and notifying to the client app that the information object is invalid, if the message identifier is located in a cache or history of message identifiers. If the message identifier is not located in the cache/history, the method may include storing the message identifier in the cache/message identifier history; and notifying the client app that the information object is not replayed.

In some embodiments, performing the anti-tamper check includes: computing by the data-collection module a message digest for the anti-replay header and/or the anti-tamper header; comparing the message digest with a corresponding message digest obtained from the signature; and notifying validity of the secured object to the client app according to a result of the comparison, e.g., if the comparison results in an exact match.

In some embodiments, the method further includes determining by the data-collection module one or more of whether: the user device is rooted, using a root-signature list; whether the user device and/or the client app is affected by malware, using a malware signature list; and whether a debugger and/or an emulator is attached to the client app, the data-collection module, and/or a security module associated with the data-collection module.

In some embodiments, the secured object: (i) may include the root-signature list and/or the malware signature list, and (ii) may be uploaded to a networked computer. Receiving the secured object may include downloading the secured object from the networked computer.

The method may include logging by the data-collection module information to be sent to a server. The information object may include a set of types of information to be logged; and the data-collection module may log information only of the types in that set.

In another aspect, a system is provided for allocating data structures to a number of processing nodes, where each processing node has a respective local memory. The system includes a first processor and a first memory in electrical communication with the first processor. The first memory includes instructions that can be executed by a processing unit including the first processor or a second processor, or both. The processing unit may be in electronic communication with a memory module that includes the first memory or a second memory or both. The user device may include the processing unit.

The instructions in the first memory configure the processing unit to operate as a data-collection module, where the data-collection module is programmed to: (a) receive by a client app installed on a user device a secured object. The secured object includes: (i) an information object having information to be received by the client app and/or a data-collection module associated therewith, (ii) a header object having an anti-replay header and/or an anti-tamper header, and (iii) an integrity object having a signature associated with the information object. The instructions also program the data-collection module to: (b) validate the information object based on the signature; and (c) perform an anti-replay check, and/or an anti-tamper check. In various embodiments, the instructions can program the processing unit to perform one or more of the method steps described above.

In another aspect, an article of manufacture is provided that includes a non-transitory storage medium having stored therein instructions which, when executed by a processing unit program the processing unit, which is in electronic communication with a memory module, to allocate data structures to a number of processing nodes, where each processing node has a respective local memory. The user device may include the processing unit.

The instructions in the first memory configure the processing unit to operate as a data-collection module, where the data-collection module is programmed to: (a) receive by a client app installed on a user device a secured object. The secured object includes: (i) an information object having information to be received by the client app and/or a data-collection module associated therewith, (ii) a header object having an anti-replay header and/or an anti-tamper header, and (iii) an integrity object having a signature associated with the information object. The instructions also program the data-collection module to: (b) validate the information object based on the signature; and (c) perform an anti-replay check, and/or an anti-tamper check. In various embodiments, the instructions can program the processing unit to perform one or more of the method steps described above.

In another aspect, a method for facilitating secure exchange of information between a user device and a server, includes the steps of: storing by a security module a data element in a file in a sandbox corresponding to a client app, in an encrypted form. The security module may be associated with a data-collection module that is associated with both the client app and a user device. The method also includes, upon request from the data-collection module, providing thereto the data element in an unencrypted form.

In some embodiments, the method includes encrypting by the security module the data element using a first level storage key; encrypting the first level storage key using a second level storage key or a master key; and storing the encrypted first level storage key in another file in the sandbox. An encryption procedure used for encrypting the data element may be different from an encryption procedure used for encrypting the storage key. The method may also include dynamically generating the master key. In some embodiments, the method includes dynamically generating by another security module that is associated with the user device and with another client app installed on the user device, another master key corresponding to the other client app. The other master key may be unable to decrypt any data not encrypted by that master key. A different sandbox may be associated with each client app and the storage/master keys used to store different data elements corresponding to different client apps in their respective sandboxes may be different. As such, one client app may not access another client app's data element(s) even though the two client apps are installed on the same user device. The security module may be obfuscated. For example, the security module may include one or more obfuscating code segments.

The data element may include one or more of: a public key of a server, for encrypting information to be transmitted via the client app to the server; a private key of the data-collection module, for generating a signature for the information to transmitted; an identifier of the user device; a location of the user device; a private key of the data-collection module, for decrypting information received by the client app; a public key of the server, for validating information received therefrom using a signature transmitted by the server; a message identifier history used in performing an anti-replay check; a root-signature list, used in determining whether the user device is rooted; a malware signature list, used in determining whether the user device contains malware; and a certificate associated with the client app.

In another aspect, a system is provided for allocating data structures to a number of processing nodes, where each processing node has a respective local memory. The system includes a first processor and a first memory in electrical communication with the first processor. The first memory includes instructions that can be executed by a processing unit including the first processor or a second processor, or both. The processing unit may be in electronic communication with a memory module that includes the first memory or a second memory or both. The user device may include the processing unit.

The instructions in the first memory configure the processing unit to operate as a security module, where the security is programmed to: store a data element in a file in a sandbox corresponding to a client app, in an encrypted form. The security module may be associated with a data-collection module that is associated with both the client app and a user device. The instructions also program the security module to, upon request from the data-collection module, provide thereto the data element in an unencrypted form. In various embodiments, the instructions can program the processing unit to perform one or more of the method steps described above.

In another aspect, an article of manufacture is provided that includes a non-transitory storage medium having stored therein instructions which, when executed by a processing unit program the processing unit, which is in electronic communication with a memory module, to allocate data structures to a number of processing nodes, where each processing node has a respective local memory. The user device may include the processing unit.

The instructions in the first memory configure the processing unit to operate as a security module, where the security module is programmed to: store a data element in a file in a sandbox corresponding to a client app, in an encrypted form. The security module may be associated with a data-collection module that is associated with both the client app and a user device. The instructions also program the security module to, upon request from the data-collection module, provide thereto the data element in an unencrypted form. In various embodiments, the instructions can program the processing unit to perform one or more of the method steps described above.

BRIEF DESCRIPTION OF THE DRAWINGS

In the following description, various embodiments of the present invention are described with reference to the following drawings, in which:

FIG. 1 illustrates a reference authentication flow depicting a bank's credential validation service, according to one embodiment;

FIG. 2 illustrates the reference flow of FIG. 1 from the perspective of a process;

FIG. 3 illustrates an example user authentication based on the reference process illustrated in FIG. 1;

FIG. 4 expands detail of the example by introducing an object flow, according to some embodiments;

FIG. 5 illustrates a data-collection module and a client app communicating using secured objects, according to some embodiments;

FIG. 6 illustrates credential registration, according to some embodiments;

FIG. 7 illustrates the software layers implemented on a mobile user device, according to some embodiments;

FIG. 8 illustrates establishment of cryptographic keys between a client app/data-collection module/security module and a service provider's server and/or an authentication server, according to some embodiments;

FIG. 9 illustrates the use of cryptographic keys, according to some embodiments;

FIG. 10 illustrates receiver validation of a secured object according to some embodiments.

FIG. 11 depicts three logical components of a secured object, according to some embodiments;

FIG. 12 illustrates anti-replay check according to some embodiments;

FIG. 13 illustrates an example anti-replay detection;

FIG. 14A shows an example format of a secure object;

FIG. 14B illustrates BASE64 encoding of a JSON structure;

FIG. 15 illustrates a secured object digital signature, according to some embodiments;

FIG. 16A shows an example of an information object format;

FIG. 16B provides example “appObj” forms;

FIG. 16C provides further example “appObj” forms;

FIG. 16D provides further example “appObj” forms;

FIG. 17 illustrate different modes of transmission of information between a data-collection module and a server, with one or more untrusted intermediaries, according to some embodiments;

FIG. 18 illustrates a trust model providing a different method of protection at each trust boundary, according to some embodiments;

FIG. 19 shows an example Whitelist;

FIG. 20 depicts a Malware Signature List;

FIG. 21 shows an example of a Root Signature List; and

FIG. 22 depicts an example Blacklist.

DETAILED DESCRIPTION

FIG. 1 illustrates a reference authentication flow depicting a service provider's, e.g. a bank's credential validation service, according to some embodiments. The steps of the flow include:

-   -   1. On the user's device, the bank collects authentication         credentials.     -   2. The user's device uploads the authentication credentials to         the bank.     -   3. Upon reception of the authentication credentials, the bank         routes the credentials to a dispatcher and waits for a response.         The dispatcher sends each individual credential to its         respective validation service.     -   4. Upon receipt of the responses from the validation services,         the bank performs a risk analysis. In some embodiments a simple         analysis producing a Boolean result is produced. In some         embodiments a risk-based action depicted on the flow chart as         “maybe” is offered. Example actions include requesting an         additional authentication credential, or limiting access to only         a small collection of banking services, etc.         FIG. 2 illustrates the reference flow from the perspective of a         process. The architecture of some systems described herein         conforms to this process.

FIG. 3 illustrates an example bank which implements the reference process shown in FIG. 2. For illustrative purposes, assume that the example bank authenticates using multiple different types of credentials. The example bank proves that the user has “something-you-know” by requiring a password; the bank authenticates two separate credentials for “something-you-have” through both a time-based token such as RSA SecurlD or Vasco token and additionally validates the machine fingerprint; and the bank validates “something-you-are” through a biometric. Regardless of the type of credential, the bank conforms to the reference process for collecting, uploading, dispatching, and validating the credential.

First the bank collects the credential through processes executed on the user's device:

-   -   Password: prompt the user to fill out a form field.     -   Token: prompt the user to fill out a form field by copying the         current value presented on the token.     -   Machine identifier: automatically interrogate the device to         extract the fingerprint     -   Biometric: Ask the user to make a sound, present a thumbprint,         or perform the other action necessary for the biometric.

Second, the user's device uploads all of the credentials through the network to the bank's servers. Third, the bank's authentication server operates as a dispatcher which routes each credential to its validation server and waits for a response. Fourth, the bank's individual authentication processes validate. The password service forms a message digest of the submitted password and compares against the message digest in the database; the token validator uses the current time and the token value submitted by the user for comparison with a vendor generated reference value; the machine fingerprint validates against a fingerprint authentication server; and the biometric checks against the biometric server.

The results pass back to the dispatcher which consolidates the individual validations and produces a response. Some banks implement a binary pass/fail response to the login. These banks only allow the login request to be processed if all credentials validate. In some embodiments, a bank (a service provider, in general) can offer a “maybe” response which precipitates a risk-directed action. For example, the bank may permit the requested login but disable some risky services. The machine fingerprint is one of possibly multiple authentication credentials.

FIG. 4 expands detail of the example by introducing the object flow. Each authentication credential has a unique object that passes through the system. The objects in the example are Password, Token value, a secured object (e.g., InAuth's Opaque Object), and Biometric, produced by the password form field, token form field, an interrogator of a data-collection module, and Biometric collector, respectively. Next, the banking client uploads all of these credential objects to the banking server for further validation.

Embodiments of the secured object and the embodiments of the data-collection module are discussed in detail below. In addition to validating the machine fingerprint, in some embodiments the validation server may also provide one or more of the following services:

-   -   Anti-root check: Provide a risk-based authentication credential         which explains whether the mobile device may have been rooted.     -   Anti-malware status: Provide a risk-based authentication         credential which shows whether dangerous malware may exist on         the device.     -   Location-check: Provide a risk-based authentication credential         which can validate a user's location data.

In some embodiments, the data-collection module and the client app (e.g., the Banking Client) installed on a user device may communicate through secured objects as illustrated in FIG. 5. A user device may include a phone, a smart phone, a tablet computer, a laptop, a desk top, a mobile computing device, a custom point-of-sale device, a device in the Internet of things, etc. The secured objects are self-contained units of information designed to provide protection against data leakage, unauthorized tamper, and/or replay. This means that some embodiments of the secured objects can resist man-in-application and man-in-middle attacks.

In some embodiments, the data-collection module acts in a capacity of a library which either produces secured objects as returns to method invocations from the Banking Client; or accepts secured objects submitted from the Banking Client. In the second case, the secured object would have been manufactured by the a server such as a bank server, an authentication server, etc., and passed in the reverse direction through the Banking Server Dispatcher to the Banking Client, and then to the data-collection module. Although the Server Dispatcher and the Banking client have physical access to the secured objects that they forward, the internal security of the secured object prevents any attack launched from these or any other intermediaries.

As described above, some service providers employ simple means of authentication such as passwords and hardware tokens. However, some of the modern forms of authentication may be more complex because they employ calibration. Biometrics and malware detection are two example types of authentication which may need calibration. In some embodiments, the calibration step provides a reverse flow from the server to the collector (the data-collection module) which impacts the means by which the collector operates. For example, in a facial recognition biometric system, the server may provide indication that the user may have accidentally placed his or her finger over the lens. The collector responds with a visual indicator to the user to retry. In a malware detection system, the server may produce configuration files which explain to the malware detector implemented as part of a data-collection module on a client device the list of malware signatures for which to scan. In some embodiments, crimeware detection is provided by a data-collection module, providing crimeware detection result(s).

While integrating with an authorization server, the service provider may determine a policy for calibration. The service provider can implement the mechanism through invocations of methods on the authorization server and/or on the data-collection module to produce and consume secured objects that carry malware signatures, respectively. For example, in some embodiments, suppose a bank's policy is to ensure that the malware signature is not more than one-week old. When the user opens the banking application, the application executes a method on the data-collection module to determine the age of the current malware signature. The data-collection module looks into its encrypted and protected files within the application sandbox for a non-volatile cache of the malware signature file, and then returns a result. If the malware signature file does not exist or is more than a week old, then the Banking Client sends a request to the Banking Server. The Banking Server queries the authentication server for a secured object containing the latest signature file. The Banking Server then returns this secured object to the Banking Client; and the Banking Client submits this secured object to the data-collection module through a method invocation. In general, a sandbox of a client app is a portion of the file system of the user device which is accessible only by the corresponding app. In general, no other app may view or access another app's sandbox without breaking security.

As a performance optimization, the authentication server may load its most current secured object containing the signature file on an externally-accessible web server. External users may download the secured object whenever they wish without requiring a method call into the Server. However, these external users may not open or modify the secured object due to the Secured Object's internal cryptographic protection mechanisms described below. Nevertheless, the external user may load the secured object into the data-collection module prior to the point that the user manually opens the banking application.

The reference credential validation process depicted in FIG. 2 is one of two types of processes implemented by the bank. The second type of process is registration. Many users are familiar with new password or forgotten password flows. Typically, the bank prompts the user for some type of an initial authentication credential, e.g., challenge questions, externally-obtained password or QR code, confirmation of offline response through e-mail or text message, Social Security number, or amount displayed on last banking statement. Upon a successful response to the initial authentication credential, the bank executes the credential registration as illustrated in FIG. 6.

Credential registration, according to some embodiments, conforms to the reference credential registration process. A client app installed on a user device (e.g., a Banking Client) submits a request to the data-collection module requesting a secured object containing a registration message. The client app uploads the secured object to the Banking Server; and the Banking Server submits the secured object into the server which completes the registration.

Mobile Client Software Layers

FIG. 7 illustrates the software layers implemented on the mobile client.

Obfuscation: Obfuscation is a technology which operates over software. An adversary cannot easily ascertain the programming logic of obfuscated code. The scope of the obfuscation layer usually covers executable software such as the client app installed on a user device (e.g. a smart phone, tablet, computer, etc.) and/or the data-collection module and one or more components thereof. The obfuscation layer may not obscure data.

Anti-Tamper: The anti-tamper solution protects against an adversary who modifies the banking application or the data-collection module. The scope of the anti-tamper layer also typically covers executable software. The anti-tamper layer may not protect against data tampering. This layer generally prevents changing and/or replacement of authorized executable code. Alternatively or in addition, some embodiments provide for detection of any tampering with the client app and/or data-collection module and/or can provide validation that the executable software was not tampered with, as discussed below.

Security Module: In some embodiments, a security module (e.g., InAuth Soft Security Element) is associated with a data-collection module. The security module may provide cryptography and/or non-volatile key storage services.

Cryptographic Keys

FIG. 8 illustrates the use of cryptographic keys according to some embodiments. The left of the diagram illustrates three mobile devices labeled C1, C2, and C3, respectively. Within the sandbox of the banking application of each device is a private key of an asymmetric key pair. For example, within C1's sandbox is its private key d1; C2 holds its private key d2; and C3 has its private key d3. Additionally, each device's sandbox also holds the public key of the banking server. The diagram also shows that all of the devices hold exactly the same public key because in FIG. 8, the clients depicted are the clients of the same service provider (i.e., the bank, in this example).

The right of the diagram depicts the banking server. The banking server maintains a database (directory) which holds the public key associated with each client. For example, if a fourth client were to onboard, then the result of the registration sequence would be an installation the fourth public key into the banking server's database (directory). FIG. 9 depicts the user of private and public keys for encrypting information and for digitally signing information by the client app/data-collection module/security module and by the servers, according to various embodiments.

While the architecture may assume that the environment adequately protects the servers, one may not impose a similar assumption upon the clients. Rather, the clients reside outside of the bank's security perimeter and may be subject to attacks, abuse, and malware. In defense, in some embodiments, the security module protects the keys stored on each client as described below. The objectives of a security module may include one or more of,

-   -   The private key, di, must not leak out of the security module.         Even if the adversary were to bypass device security by rooting         the device, the adversary would encounter considerable         difficulty when working to discover a private key.     -   An adversary should not gain the ability to tamper with the         contents of a sandbox of a client app with the objective of         modifying or substituting the private key.     -   An adversary should not gain the ability to tamper with the         contents of a sandbox with the objective of modifying or         substituting the server's public key.

The security module can store cryptographic keys in either volatile or non-volatile storage. The location of the non-volatile storage is typically the application's, i.e., a client app's sandbox. Although a service provider's application has access to the sandbox, the security module's secure storage provides a means to protect against man-in-application attacks. Secure storage leverages keys which are not available to the application; and the Secure Storage layer may enjoy the benefit of protection through the underlying obfuscation and/or anti-tamper layers.

The following list presents the services offered by the security module, according to some embodiments:

-   -   Asymmetric key pair generation     -   Asymmetric cryptographic encryption/decryption     -   Digital signature/validation     -   Symmetric key generation     -   Symmetric key wrapping/unwrapping     -   Symmetric encryption/decryption     -   Secure non-volatile storage/retrieval in the application's         sandbox     -   Serialization/deserialization of asymmetric key into secure         non-volatile storage container.

In some embodiments, the programming languages used to implement the security module are C and C++. The underlying obfuscation and anti-tamper layers can be effective when protecting software constructed using low level languages. Various other programming languages may also be used to implement the client app, the data-collection module associated therewith, and/or the secure module associated with the data-collection module.

Non-Volatile Storage

In various embodiments, the architecture described herein can provide protection against rooted devices and/or man-in-application-attacks. The nonvolatile storage protection offered by the operating system is often not sufficient. For example, the data-collection module may reside within the context of a rooted device or compromised client application. As such, in some embodiments, the security module implements its own mechanism to protect various keys and/or other information.

In some embodiments, the security module defines three levels of keys:

-   -   Data keys     -   Storage keys     -   Master keys

In other embodiments, one, two, or more than three levels of keys may be used. A key used by any layer above the security module is a data Key. No upper layer can detect the existence of either storage keys or Master Keys. The security module stores each data key in a signed and encrypted file within the application's sandbox. The security module uses storage keys to sign and encrypt the files containing the data keys. No two data keys may reside in the same file.

The security module stores each storage key in a signed and encrypted file within the application's sandbox. The security module uses a master key to sign and encrypt the Storage key. In various embodiments, the master key does not exist in any non-volatile storage. Rather, the security module generates the master key dynamically. However, the dynamic generation method always yields the same results upon every iteration. This means that no hardcoded key exists that may be subject to static code analysis. Rather, the adversary must trace the execution sequence of the security module in order to discover the master key, making the detection thereof difficult.

In some embodiments the security module defines four or more levels of keys as follows:

-   -   Data key     -   Storage 1 keys     -   Storage 2 keys     -   . . .     -   Storage n keys     -   Master keys

The security module may use storage keys 1 to sign and encrypt the files containing the data keys. The security module may use storage keys i+1 to sign and encrypt the files containing the information signed and encrypted by storage key i. The security module may use the master keys to sign and encrypt the information signed and encrypted by storage key n, where n is the largest level of a storage key.

Secured Object

The data-collection module and the authorization server communicate using secured objects transmitted directly between these two entities or indirectly through one or more possibly untrusted intermediaries. Upon reception of a secured object, the receiver can validate that object in accordance to the process depicted in FIG. 10.

First, the recipient receives the secured object. Next, the recipient decrypts to discover the underlying message. Next, the recipient validates the digital signature, and lastly, the recipient validates the anti-replay information. If all the validations succeed, then the recipient accepts the message. Otherwise, the recipient returns an exception to its invoker and discards the message without further processing. The errors do not automatically propagate across the network to the peer, e.g., if the authentication server rejects the message, then the service provider's server that invoked the authentication server's API may receive the error as a return of the method invocation (e.g., as shown in FIG. 5 illustrating an Opaque Object communication path).

In some embodiments, the secured object is a serializable object that protects any information object carrying information to be communicated such as keys, malware lists, application list to be used in detecting whether the device is rooted, location information, etc. The secured object generally relies upon cryptographic controls to ensure that it is an atomic, inseparable object. This means that an adversary typically cannot alter or shuffle the individual components of a secured object. The secured object has three logical components as shown in FIG. 11.

-   -   Protected Information Object: In some embodiments, the Protected         information object is an application-specific JSON-formatted         unit of information that enjoys cryptographic protection.         Examples of information Objects are registration, logs, etc., as         discussed below.     -   Anti-Replay: The Anti-Replay component can protect the secured         objects from replay attacks. If an adversary were to play back         an old secured object, then the peer would detect the playback         attack.     -   Anti-Tamper: In some embodiments, the Anti-Tamper component         protects against an adversary who links malware to the client         app installed on a user device, a data-collection module         associated therewith, and/or a corresponding security module.         The Anti-Tamper unit provides a vehicle for securely providing         information to a recipient such as a client app, a service         provider's server, an authentication server, etc.

In some embodiments, after performing the first three steps of FIG. 10, the recipient concludes with the anti-replay step illustrated in FIG. 12. The mechanism used to check anti-replay can be similar for both the authentication server and the data-collection module. Each maintains a configurable threshold, e.g., 5 minutes. The description below presents the authentication server's process:

Validate timestamp: Each secured object has a timestamp inserted by the peer (e.g., data-collection module sending a secure object). If the timestamp is older than the threshold subtracted from the current time as observed by the authentication server, then the server discards the secured object. For example, if the current time is 10:00 AM, then the server discards any secured object transmitted before 9:55 AM on the same day.

Validate message id against cache: Each secured object includes a random number used as a message ID. The space of random numbers is large enough (e.g., at least 64 bits) to avoid or at least minimize the possibility of collision. The Authentication Server maintains a cache of ordered pairs of (ObjectID, timestamp) for each peer data-collection module. Upon receipt of an secure object, the Authentication Server first validates that the incoming ObjectID does not appear in the cache for the peer data-collection module. If the ObjectID is in the cache, then the incoming secured object is a replay and the Server discards. Otherwise, the Server accepts the secured object and adds its ObjectID and timestamp to the cache. Finally, the Server discards any records from the cache that are older than the time threshold.

For example, consider the scenario illustrated in FIG. 13. Server 3 receives the secured object on the left of the diagram from data-collection module 1. Server 3 identifies the table for data-collection module 1 and notes three items in the cache. Server 3 compares the ObjectID of the incoming message (42) against the three ObjectIDs in the cache (95, 18, and 77). Since 42 is not in the cache, Server 3 accepts the incoming secured object and inserts (42, 10:00) into the cache. Server 3 may subsequently discard (95, 9:43) from the cache because it is older than the threshold of 5 minutes.

The anti-replay mechanism assumes that each distributed Authentication Server instance has its own asymmetric key pair. So, Authentication Server1 cannot receive a message intended for Authentication Server2 because Authentication Server1 would not have the requisite decryption key. This assumption protects against an attack where an adversary records an secured object transmitted and processed by one Authentication server, but then plays back the secured object to a second Authentication server. One need not assume that the distributed Authentication servers share state because they may potentially reside in different data centers.

Format of a Secure Object

-   -   In some embodiments, the expression of the secured object is in         JSON. The secured object has three parts. encryptedBody: This         field contains the encryption of a body of a message. All         characters are UTF-8, in some embodiments. The body of a message         is also referred to as the information object.     -   header: Anti-replay and other cryptographic information used to         protect a message (hashed message authentication code)     -   integrity: Digital signature or HMAC used to ensure message         authenticity

An example format is as shown in FIG. 14A where “data” is a BASE64 encoding of a JSON structure as shown in 14B.

AntiReplay

The purpose of antiReplay is to protect against replay attacks. The first level protection is the “time”. Upon receipt, the recipient rejects any “time” value in the future. Additionally, the recipient rejects any time value beyond a threshold in the past. For example, suppose the threshold is 20 minutes. The recipient rejects any message with a “time” value more than 20 minutes in the past. The line threshold can be a few seconds, minutes, hours, or days.

The “time” value protects against gross replay attacks, but does not protect against recent replay attacks. The recipient caches all the message IDs received during the period up to the last threshold. The recipient generally ensures that it never accepts the same messageID twice. In some embodiments, the messageID is a BASE64-encoded value that includes a version number, a period, and a 64-bit value. As long as the time threshold for anti-replay is reasonable, the recipient should only need to hold a handful of session IDs. So, a space of 2⁶⁴ session IDs is well-beyond sufficient. However, in some embodiments, we limit the space to 64-bits, because the message digest in the signature is 256 bits. If the message ID were longer, then an adversary would have an opportunity to force hash collisions by manipulating the random-appearing 64-bit value until it produced a desired message digest. By limiting to just 64-bits, the probability of a hash collision is approximately 10-39 for a 256-bit message digest. In other words, the adversary does not have enough space in the message ID to force a hash collision. For messages sent from the data-collection module to the server, the version number is always 0 in some embodiments. In some embodiments, the message digest algorithm is SHA-512 producing a 512 bit message digest; and the random or pseudo randomly generated value has 256 bits.

In some embodiments, the recipient only accepts secured objects with the latest version number. Once the recipient receives a secured object with a version number of i, the recipient may never again accept an secured object with a message ID of i−1 or below. The message-id history is a list of zero or more of the most recently received message IDs. The number of IDs on the list is an implementation detail determined by the sender. Typically, when the server is the sender and the data-collection module is a recipient, then the server sends an empty list. When the data-collection module is the sender and the server is the recipient, then the sender places a few of the latest message-ids on the list.

Crypto

In general, Crypto contains one or more of the following items:

-   -   The anti-tamper-md is a message digest used for the purpose of         providing tamper protection. When the server validates the         message digest, the server ensures that some aspects of the         client or application have not been tampered. In addition the         anti-tamper-md covers any value returned by the security module         for tamper protection. In other words,         anti-tamper-md=md(software|SSEvalue). A purpose of the         anti-tamper-md is to protect against bot attacks. Suppose, for         example, a bot were to link with the data-collection module. In         this case, the bot would benefit from authentication security as         opposed to being prohibited. The anti-tamper-md combats this         scenario by providing the fingerprint of the parent application.         A fingerprint can be a message digest (e.g., a SHA-256 message         digest) computed over the application. The authentication server         expects a software fingerprint for one or more of the client         app, the data-collection module, and the security module. Should         any of these software modules be modified or replaced without         authorization, the fingerprint would change. The authentication         server, upon noticing a different message digest than that         expected, can determine that the sender software is not genuine.     -   The anti-tamper-mode specifies what information is covered under         the anti-tamper-md. One option is to perform the message digest         not only on the data-collection module, but additionally the         invoking client application. Upon receipt, the server validates         against expectations. The purpose of the anti-tamper-md is to         protect against bot attacks. Suppose, for example, a bot were to         link with the data-collection module. In this case, the bot         would benefit from security provided by some embodiments as         opposed to being prohibited. The anti-tamper-md combats this         scenario by computing and sending the fingerprint of the parent         application. In some embodiments, the anti-tamper-mode has the         value “0”, then the recipient should ignore anti-tamper-md.     -   Asym provides the asymmetric algorithm used for encryption.     -   Sym provides the symmetric algorithm used for encryption     -   Encode is the encoding scheme, e.g., BASE64 used to encode raw         bits     -   peerEncPubKey is the list of public keys that each encrypt the         symmetric key     -   signingPubKeyFingerprint is the message digest of the public key         used by the data-collection module to sign the secured object     -   wrappedSymEnckey is the list of symmetric keys each wrapped in a         public key. The number of wrappedSymEnckeys is equal to the         number of peerEncPubKeys     -   wrappedSymIntegKey: When not using a digital signature in order         to optimize performance use the SymIntegKey. The algorithm is an         HMAC. This value should be set to “0” when using signatures, in         some embodiments.     -   IV is the initialization vector used for symmetric encryption of         the body     -   Body-md is the message digest of the body before it is         encrypted.         Analysis of Secured Object

Secured Object Integrity: FIG. 15 illustrates a diagram of the secured object digital signature. As illustrated in the diagram, if any aspect of the secured object were changed by an unauthorized party, then the digital signature would not validate. As a result, all headers and bodies enjoy integrity protection provided that the adversary does not discover the value of the private key.

In addition, the secured object includes the message digest of the banking application coupled with the data-collection module. The digital signature ensures that no man-in-application or man-in-middle can change the message digest in transmission. So, when the server receives the antiTamper-md, the server may check to ensure that the data-collection module linked to a correctly authorized application.

Secured Object Replay Protection: The recipient receives an secured object in exactly one of the following three conditions:

-   -   The timestamp of the secured object is not in the future from         the perspective of the recipient AND the timestamp has not         expired.     -   The timestamp has expired     -   The timestamp is in the future

Since a timestamp is a distinct point, it must reside within exactly one of the three conditions. However, the server rejects any incoming message unless the timestamp satisfies the first condition. Within this condition, the server uses its message ID cache to protect against replay.

Cryptographic Performance Optimization

When a user opens a client app on a mobile device, the application initializes the data-collection module. On the first message that the data-collection module sends to the server, no facility for cryptographic optimization generally exists. However, on all subsequent messages, the data-collection module may optionally elect to optimize performance by eliminating asymmetric cryptographic operations. Since symmetric cryptography operates quickly, and asymmetric cryptography is typically relatively slow, the performance optimization may be substantial.

In some embodiments, in order to optimize performance, the data-collection module caches the cryptoheader of the first message in memory. The data-collection module reuses the cryptoheader on all subsequent messages in the session thereby avoiding re-wrapping the session key. The data-collection module may use the wrappedintegritykey in order to ensure the integrity of subsequent messages. Since the integrity key was signed in the first message, the protocol can protect against an attacker who attempts to use his or her own integrity key.

The cryptographic performance optimization has a security tradeoff. By caching keys, the data-collection module may be more vulnerable to attack because multiple messages are encrypted with the same key. Furthermore, by reusing symmetric keys the cryptographic assurance may not be quite as high as using a unique symmetric key on every message.

Information Object

The information object contains the information required to drive the various authentication semantics. Each information object has a type-header which describes its purpose. The remainder of the information object contains information specific to its type.

Information Object Format: The format of an information object according to some embodiments is shown in FIG. 16A with examples of “appObj” in FIGS. 16B, 16C, and 16D. The information object format can be an array of one or more “appObj”.

Information Object Process

Two options exist for communicating an information object as illustrated in FIG. 17 below. The diagrams illustrate a transmission that originates in the data-collection module and terminates at the authorization server, with the service provider's client and/or server/dispatcher as untrusted intermediaries. Both diagrams illustrate secured objects that communicate from the data-collection module to the server.

The two diagram differ, however; at the point in which they format the information object. In the diagram on the left, the data-collection module populates the secured object with raw data such as an unmodified log file. Upon reception, the Server unpacks the secured object, and then parses the raw data to form the information object. In the diagram on the right, the data-collection module first parses the raw data to form an information object, and then the data-collection module inserts the information object into the secured object.

Regardless of the chosen option, the result is generally the same: the authentication server receives an information object. The architectural choice is left to a software system developer. The advantage of the approach on the left is that it offloads processing cycles onto the users' devices. The advantage of the approach on the right is that it allows for simpler application code to be installed onto the device thereby facilitating debugging and updates.

Install:

In some embodiments, when a user first installs a client app, the app invokes the install service. The install service creates a non-volatile file using the cryptographic protection mechanisms called appid. The install service creates a 256-bit number and inserts this number into this file. The purpose of the appID is to ensure separation when multiple protected client applications reside on the same device. This can avoid the possibility of one application attacking another by confusing keys. In some embodiments, the master keys are generated by referencing an appID corresponding to a client app, and other information collected from the user device. In this way, each client application operating on a single user device can have different master keys.

In some embodiments, when a user runs the client app invoke the data-collection module's init service immediately. The init service polls the authentication server to determine if any new configuration files (e.g., malware and root signature files) exist and have not yet been installed. The init service can install the configuration files prior to exchange of information for user authentication.

Root Detection:

In some embodiments, root detection exports an API that has no input parameters. As an output parameter, the root detection API produces an secured object that contains an information object of the rootResult type. The root detection service first searches the device for indication of root access:

-   -   1. In some embodiments, the data-collection module, includes         software that implements isRootAvailable( ) and         isRootAccessGiven( ) These routines can be effective is         identifying evidence of root access.     -   2. Search for root or superuser-like applications and see if         they are currently running.     -   3. Find root hiders and see if they are running.     -   4. Find root related applications (apps installed only with         rooted phones) and see if they are running     -   5. check if ro.secure flag was changed     -   6. find root if related directories are created

This search produces a Boolean result coupled with a description. The service may generate an information object having a type “rootResult” populated with the result and findings from the search. Next, the root detection service may pass the rootResult to the data-collection module, which can generate a corresponding secured object for transmission of the root results to the authentication server.

Malware Detection:

In some embodiments, malware detection exports an API that has no input parameters. As an output parameter, the malware detection API produces a secured object that contains an information object of the malwareResult type. The malware detection service first looks into the local sandbox of the application to find a malware signature file. If the malware signature file does not exist or has expired, then the malware detection returns an error. The malware detection service is not responsible for obtaining the malware signature file in some embodiments. After obtaining the malware signature file, the malware detection uses the services of the security module to check tamper by validating the digital signature of the malware signature file. This check protects against man-in-application attacks that corrupt files in the application's sandbox.

Parse the malware and then search the device to determine if any application installed and/or running on the device has a message digest that equals a value in the malware signature file. This search may produce a Boolean result coupled with a description. This result can be included as an information object of type malware result, which may then be included in a secured object, and transmitted to an authentication server.

Location Detection

Location Services Implemented in the Data-Collection Module: The data-collection module may collect one or more of the following types of location-related information to send to the server.

-   -   Cell tower: Query the device for the physically closest cell         phone towers, and upload to the server.     -   WIFI: Identify the SSID and MAC address using the same functions         as required to obtain cell phone data.     -   DNS: Obtain a GIF image that has no display. Query the DNS for         the domain name, where the DNS resolves to the ISP. The ISP then         resolves to the domain server, thereby providing the location of         the ISP's DNS.     -   GPS: Query the GPS coordinates.

Location Services implemented in the Authentication Server: In some embodiments, the authentication server may implement the following logics:

-   -   Cell tower: Upon receipt of the cell tower data from the device,         lookup in a database. The database cross references between cell         tower names and geographical locations. The server resolves         against this database to provide the location.     -   Wifi: The server's WIFI solution is the same as the cell tower.         When possible, use a service with both cell tower and wifi         information.         Debugger/Emulator

The presence of a debugger and/or an emulator on a client device may suggest that the client app, the data-collection module, and/or the security module is compromised or tampered with. In some embodiments, the data-collection module can detect if a debugger and/or an emulator is attached to a client app, the data-collection module, and/or the security module. If the presence of a debugger and/or an emulator is detected, that information may be sent via a secured object to an authentication server.

Certificate Pinning

The purpose of the certificate pinning service is to detect an intermediate proxy which may interrupt, modify, or view confidential information. In some embodiments, the Certificate Pinning service can be redundant because the secured object already addresses the security requirements as discussed above. However, the Certificate Pinning service may be useful to the client app itself because the client app may rely upon mechanisms other than secured objects, such as HTTPS for protecting its communication. For example, if an online banking service were to pass bank account numbers, credit card numbers, or passwords over the Internet, then the banking service would need an assurance that the HTTPS connection is secure.

In some embodiments, the certificate pinning service operates over the trusted path offered by a secured object. The certificate pinning service exports an API that has no input parameter. If invoked, the certificate pinning service creates a secured object, and populates the secured object with an information object of the certificate type. The Certificate Pinning service has the choice of either populating the information object with the entire certificate, or the message digest of the certificate. The certificate pinning service returns the secured object that contains the information object as an output parameter.

The certificate pinning service looks into the SSL connection object in Android or IOS to find the certificate of the current SSL or TLS session. Then, the certificate pinning service writes this certificate or message digest into the information object.

Registration

Registration exports an API that accepts a filename as a parameter. The filename has the name of a data key in the sandbox. As an output parameter, the registration API produces a secured object that contains an information object which includes the data key. The registration service first looks in the application's sandbox to see if files exist representing the private key. If the file does not exist, then the registration service forms a new asymmetric key pair and populates the files. Next, the registration service collects the Permanent ID (PID) of the device by invoking the permanent id service.

The registration service uses the services exported by the security module to create encrypted and signed files in the application's sandbox holding the private key and clientID (ID of a client app or a server). The registration service builds an information object by populating the respective fields. Lastly the registration service builds and sends a secure object that includes the information object, that includes the new public key and the corresponding permanent device ID. The status value can be “new” indicating a registration of a new device, a device for which the application was uninstalled and then re-installed, or a device which has been wiped or reset.

Re-Registration

Re-registration accepts a filename, fname, as an input parameter, where the filename represents the data key which holds the asymmetric key pair for the device. This process can use the data-collection module's delete( ) method to destroy evidence of a previous registration by deleting any old files with the same name.

The data-collection module can then create a new asymmetric key pair, and store it in the sandbox of the client app using the security module, as described above. The data-collection module may build an information object including the re-registration information (e.g., including the newly generated key pair). Using the information object, the data-collection module can build and transmit a secured object to an authentication server.

Un-Registration

A reset or un register operation deletes the files in the client's sandbox representing a private key. The data-collection module then builds an information object of type unregister, builds a corresponding secured object, and sends that object to an authentication server. The data-collection module may follow a similar process as the re-registration service to clean up non-volatile files holding old keys.

Version

Version exports an API that has no input or output parameters. As an output parameter, version produces an secured object that contains an array of version numbers of IA Files, e.g., malware signature file, root signature file, and log configuration file. Each version number additionally includes the file's name (type).

Permanent ID

The service creates the Permanent ID (PID) of the device.

ANDROID: On the ANDROID operating system, the components of the PID are: MEID (mobile equipment identifier) and other values extracted from the device. The server processes the Android_ID separately from the other components because the Android_ID does not survive data wipes. However, the server uses the Android_ID as a redundant check. If the server detects that the Android_ID changed when the other components remained unchanged, then the server executes its exception processing algorithms.

The service creates the following JSON object:

{ {“pid”: {“meid”:”0980980”, }, }, }

Next, the service uses the canonicalize( ) method to convert into a serializable string (see HLD). Next, the service creates the message digest over the canonicalized method to form the pid. The service returns this pid as the result.

IOS: The service implements the IOS's pid method similarly to the Android method, by creating a JSON object of the components, canonicalizing, and then returning the message digest.

MessageID Maintenance

The MessageID maintenance service helps protect against playback attacks for messages sent from the server-to-data-collection module. As described above, the recipient may discard secured objects that are older than the threshold or secured objects that have a future timestamp. Within the span of the threshold, the recipient may check that it receives no particular messageID twice. Additionally, the recipient can check that no secured object contains a messageid with a version number less than the highest version number so far received.—

When the recipient is the server, the solution is relatively straight-forward. The recipient maintains a list of messageIDs received from each data-collection module in a secure database; and the server validates each incoming messageID upon receipt. However, when the recipient is the data-collection module, no easily-secured database exists to manage the history of received messageIDs. Instead, the data-collection module manages the history in a file (called msgid.txt in some embodiments) in the application sandbox; and protects the file using the non-volatile cryptographic mechanisms described in above. Whenever the data-collection module receives an secured object from the server, the data-collection module checks the timestamp against the threshold, and then checks the messageID of the secured object against the list stored in msgid.txt. Additionally, the data-collection module checks to ensure that it has no messageID with a later version number than the incoming secured object.

An attacker probably lacks the ability to break through the file's cryptographic protections. So, msgid.txt forgery is not highly probable. However, the adversary may attempt some simpler attacks:

-   -   Delete the msgid.txt file     -   Overwrite the msgid.txt file with an older version

These attacks require no cryptography, but both can defeat the anti-playback protection as illustrated in below. The attack illustrates a two legitimate messages transmitted from the server to the data-collection module labeled 1 and 2 respectively. However, the adversary restores the historical msgid.txt which existed after receipt of the first secured object but prior to the receipt of the second secured object. At this point, the adversary can replay the second secured object thereby defeating the anti-replay mechanism.

The data-collection module combats against this attack using the messageid-history which contains the historical list of messageIDs received by the data-collection module. Upon receipt, the server validates the history of histories to ensure that that the history grows for each data-collection module. The server permits the data-collection module to discard a messageid from the historical list in the secured object if the messageid were to have preceded the threshold; however, the history list must contain all messageids that are still within the current threshold period. If the server observes missing messageids, then the server raises an exception.

In some embodiments, once decrypted, the format of the msgid.txt file is a two column list. The first column has messageIDs, and the second column has the date-timestamp of the messageID. The messageID maintenance service ensures that the msgid.txt file is always sorted with the most recent messageid first. Whenever the data-collection module returns a secured object, the data-collection module reads the msgid.txt file to find all the messageIDs since the last timestamp, and inserts the messageIDs into the messageid-history of the secured object.

As such, the authentication server can verify that the last message ID(s) it sent to a data-collection module are returned in a subsequent message. If those message ID(s) are not returned, the authentication server may conclude that an attacker deleted the message ID history on the user device sandbox and/or replaced the message ID history with an older version. Upon this detection, the server can detect the possibility of a replay attack and/or tampering, and may take appropriate action.

Trust Model

FIG. 18 illustrates a trust model according to some embodiments. The environment provides a different method of protection at each trust boundary, as described below.

Security module trust boundary: In some embodiments, the security module may be implemented in “C” because the “C” language offers many opportunities for obfuscation and anti-tamper, and cannot be reverse engineered easily. The security module may be implemented, however, using other high level languages such as Objective-C, JAVA, etc. An adversary may encounter extreme difficulty in viewing confidential information such as cryptographic keys in memory or modifying the execution of the security module when that module is obfuscated.

The security module can cryptographically protects information from unauthorized disclosure or modification before writing to the local non-volatile sandbox file system. In some embodiments, each file has a unique per-file key. No two devices and/or no two client apps installed on a single device may share the same non-volatile storage key. Each non-volatile storage key itself may be encrypted one or more times to form a key hierarchy. Each level of the key hierarchy can use a different method of protection thereby forcing a potential adversary to execute many attacks simultaneously, while requiring different attack methods at each level of the encryption hierarchy, making unauthorized access to a key extremely difficult if not impossible.

Data-collection module trust boundary: In some embodiments, the data-collection module does not permit access to any cryptographic keys outside the boundary of the data-collection module or the boundary of the security module. Implementation of the data-collection module may also be provided with obfuscation protection.

Client app trust boundary: A service provide may link its client application to the data-collection module.

Sandbox trust boundary: In some embodiments, the data-collection module implements root and malware detection. If malware attempts to jump the sandbox boundary and access the client application's protected sandbox, a detective control implemented in the data-collection module and/or the security module may raise a flag. The data-collection module may upload the flag through a trusted path to a server in order to ensure that the server obtains correct and timely information. The integrity-protection mechanism offered through the secured object's signature can protect against unauthorized modification of this flag. The secured object's anti-replay mechanism can protect against a replay of an old message that was generated presumably prior to the detected infection.

Server trust boundary: The authentication (also called authorization) server typically resides in the application's data center, and is protected using sophisticated security systems.

In some embodiments, one or more of the operations that may be performed by a data-collection module may instead or in addition to the data-collection module be performed by the security module. Examples of such operations include generation/encryption/decryption of a secured object, generation/encryption/decryption of an information object, generation/encryption/decryption of one or more headers of the secured object, performing anti-replay and/or anti-tamper checks, etc. The information object may include a permanent ID of a user device, location data, results of malware check, root check, etc. If the security module generates an information object and/or a secured object, the information contained therein need not leave the boundary of the security module.

Server-to-Data-Collection Module Communication Model

Once the server creates a config file, the server packs the config file into an secured object, and then posts the secured object on the web server. Whenever an application starts up, the application can obtain all of the posted secured objects, that include the config file(s). A config file may include information such as message ID, version number, whitelist for logging service, blacklist of apps that should not be present on a user device, a list of apps to scan to detect a rooted device, and/or a list of malware.

In some embodiments, the data-collection module looks into its message ID file to see which secured objects were already installed. For these repeats, the data-collection module simply discards. Otherwise, the data-collection module accepts the posted secured object, updates msgid.txt, and places the configuration file into the sandbox using the non-volatile cryptographic protections as described above.

If the server receives a secured object with an outdated messageid-history, then the server blocks further processing and returns an error. The client app may shut down and restart. Upon restart, the client app may install the latest secured objects into the data-collection module. In some embodiments, the format of each configuration file is a SAML assertion, as described below:

-   -   ID: The ID is messageid of the secured object that holds the         configuration file. Upon receipt, the data-collection module         verifies to ensure that the ID and the messageID match.         Otherwise, the data-collection module discards the secured         object. If the validations succeed, then the data-collection         module stores the entire configuration file (including its SAML         header) in the sandbox using the cryptographic protections. The         filename is the ID. The data-collection module does not delete         any configuration files until the next time that the server         increases its version number of the messageid in the secured         object.     -   IssueInstant: The IssueInstant field defines a time and date         stamp which marks when the server first publishes the         configuration file version. When the application start up, the         application reads and decrypts the configuration files in the         sandbox. Whenever two configuration files each contain the same         type of information, the data-collection module selects the         configuration file with the latest IssueStatement. The         data-collection module may delete the old configuration file         from its sandbox.     -   Version: The version field is reserved by SAML. Some embodiments         use the value “2.0”.     -   Issuer: The issuer is the name of the party who issued the         configuration file, such as the authentication or service         provider's server.     -   Subject: The purpose of the subject field is to provide         different configuration files to each end-user. When not used,         the subject field has a transient identifier which can change on         every new version of a configuration file.     -   Conditions: The conditions field marks a NotBefore and NotAfter         time and date stamp. These fields allow the data-collection         module to immediately identify an error if the data collection         module were to use a configuration file that does not satisfy         its conditions.     -   AttributeStatement: The AttributeStatement contains the         configuration file. Each configuration file resides within its         own attribute. The server may submit multiple attributes in the         same SAML token, or split into separate SAML tokens. Each         secured object may not hold more than one SAML token.

The types of configuration files are described below:

White List: The example in FIG. 19 depicts a White List that covers the accelerometer and location logs. The data-collection module may collect only these logs related to accelerometer and location, and submit to the server. The data-collection module may not collect no other logs.

Malware Signature List: The example in FIG. 20 depicts a Malware Signature List. The data-collection module may search for the specified malware.

Root Signature List: The root attribute of the root signature list defines the name of a particular installation for which the data-collection module may search. The weight depicts the relative importance. Higher weight values represent greater importance, in some embodiments. Roottest is a special attribute which defines a specific test. FIG. 21 shows an example of a Root Signature List.

Blacklist: The system identifies three types of blacklists:

-   -   Phish: list of banned e-mail addresses. Scan for communication         with these addresses.     -   Smish: list of banned phone numbers. Scan for SMS text messages         with these numbers.     -   Device: List of banned devices. For each device, identify the         pid, provenance, surety, and reason for banning.

An example Blacklist is shown in FIG. 22.

As described herein, using secured objects for communication in either or both directions, a trusted path can be established between a client and a server. In various embodiments, a trusted path can offer end-to-end security, and solutions to pitfalls that may befall other techniques. In comparison, HTTPS has multiple deficiencies such as:

-   -   HTTPS generally does not offer message-oriented replay         protection. For example, an adversary may potentially replay an         old root or malware detection result through an existing HTTPS         channel.     -   HTTPS normally authenticates only a single side of the         communication channel.     -   Numerous HTTPS vulnerabilities were uncovered in recent years.     -   Encryption gaps in a datacenter's DMZ (also called perimeter) or         internal networks may render cryptographic gaps when using         HTTPS.     -   HTTPS generally does not offer non-repudiation

In various embodiments, the trusted path architecture can protect against many different attack classes:

Protection against key discovery: In some embodiments, asymmetric private keys never export out of the security module and/or the data-collection module implemented in an obfuscated manner; each private key may have multiple layers of key wrapping/encryption.

Protection against key modification: In some embodiments, each key has its own key wrapping/encryption hierarchy.

Protection against signing with a compromised key: In some embodiments, the security module can self-validate its own integrity and/or whether a data-collection module and/or a client app (and even a server) was tampered with. As such, an adversary cannot masquerade as a data-collection module and/or a client app without breaking the integrity control.

Setup or provision adversary's key: In some embodiments, the messaging solution offers opportunities to orchestrate an onboarding flow that leverages authentication via a trusted path. For example, the service provider may authenticate a password before onboarding a user device such as a smart phone, a tablet computer, a laptop, a desktop, etc.

Protection against a replay attack: In some embodiments, the security module can validate communicated secured objects and/or encrypted files in the sandbox to protect against unauthorized replay.

The various embodiments and features described herein may be used in any combination, as the combination of these embodiments and features are well within the scope of the invention. While the foregoing description includes many details and specificities, it is to be understood that these have been included for purposes of explanation only, and are not to be interpreted as limitations of the present invention. It will be apparent to those skilled in the art that other modifications to the embodiments described above can be made without departing from the spirit and scope of the invention. Accordingly, such modifications are considered within the scope of the invention as intended to be encompassed by the claims presented below and their legal equivalents.

It is clear that there are many ways to configure the device and/or system components, interfaces, communication links, and methods described herein. The disclosed methods, devices, and systems can be deployed on convenient processor platforms, including network servers, personal and portable computers, and/or other processing platforms. Other platforms can be contemplated as processing capabilities improve, including personal digital assistants, computerized watches, cellular phones and/or other portable devices. The disclosed methods and systems can be integrated with known network management systems and methods. The disclosed methods and systems can operate as an SNMP agent, and can be configured with the IP address of a remote machine running a conformant management platform. Therefore, the scope of the disclosed methods and systems are not limited by the examples given herein, but can include the full scope of the claims and their legal equivalents.

The methods, devices, and systems described herein are not limited to a particular hardware or software configuration, and may find applicability in many computing or processing environments. The methods, devices, and systems can be implemented in hardware or software, or a combination of hardware and software. The methods, devices, and systems can be implemented in one or more computer programs, where a computer program can be understood to include one or more processor executable instructions. The computer program(s) can execute on one or more programmable processing elements or machines, and can be stored on one or more storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), one or more input devices, and/or one or more output devices. The processing elements/machines thus can access one or more input devices to obtain input data, and can access one or more output devices to communicate output data. The input and/or output devices can include one or more of the following: Random Access Memory (RAM), Redundant Array of Independent Disks (RAID), floppy drive, CD, DVD, magnetic disk, internal hard drive, external hard drive, memory stick, or other storage device capable of being accessed by a processing element as provided herein, where such aforementioned examples are not exhaustive, and are for illustration and not limitation.

The computer program(s) can be implemented using one or more high level procedural or object-oriented programming languages to communicate with a computer system; however, the program(s) can be implemented in assembly or machine language, if desired. The language can be compiled or interpreted. Sets and subsets, in general, include one or more members.

As provided herein, the processor(s) and/or processing elements can thus be embedded in one or more devices that can be operated independently or together in a networked environment, where the network can include, for example, a Local Area Network (LAN), wide area network (WAN), and/or can include an intranet and/or the Internet and/or another network. The network(s) can be wired or wireless or a combination thereof and can use one or more communication protocols to facilitate communication between the different processors/processing elements. The processors can be configured for distributed processing and can utilize, in some embodiments, a client-server model as needed. Accordingly, the methods, devices, and systems can utilize multiple processors and/or processor devices, and the processor/processing element instructions can be divided amongst such single or multiple processor/devices/processing elements.

The device(s) or computer systems that integrate with the processor(s)/processing element(s) can include, for example, a personal computer(s), workstation (e.g., Dell, HP), personal digital assistant (PDA), handheld device such as cellular telephone, laptop, handheld, or another device capable of being integrated with a processor(s) that can operate as provided herein. Accordingly, the devices provided herein are not exhaustive and are provided for illustration and not limitation.

References to “a processor”, or “a processing element,” “the processor,” and “the processing element” can be understood to include one or more microprocessors that can communicate in a stand-alone and/or a distributed environment(s), and can thus can be configured to communicate via wired or wireless communication with other processors, where such one or more processor can be configured to operate on one or more processor/processing elements-controlled devices that can be similar or different devices. Use of such “microprocessor,” “processor,” or “processing element” terminology can thus also be understood to include a central processing unit, an arithmetic logic unit, an application-specific integrated circuit (IC), and/or a task engine, with such examples provided for illustration and not limitation.

Furthermore, references to memory, unless otherwise specified, can include one or more processor-readable and accessible memory elements and/or components that can be internal to the processor-controlled device, external to the processor-controlled device, and/or can be accessed via a wired or wireless network using a variety of communication protocols, and unless otherwise specified, can be arranged to include a combination of external and internal memory devices, where such memory can be contiguous and/or partitioned based on the application. For example, the memory can be a flash drive, a computer disc, CD/DVD, distributed memory, etc. References to structures include links, queues, graphs, trees, and such structures are provided for illustration and not limitation. References herein to instructions or executable instructions, in accordance with the above, can be understood to include programmable hardware.

Although the methods and systems have been described relative to specific embodiments thereof, they are not so limited. As such, many modifications and variations may become apparent in light of the above teachings. Many additional changes in the details, materials, and arrangement of parts, herein described and illustrated, can be made by those skilled in the art. Accordingly, it will be understood that the methods, devices, and systems provided herein are not to be limited to the embodiments disclosed herein, can include practices otherwise than specifically described, and are to be interpreted as broadly as allowed under the law. 

What is claimed is:
 1. A computer-implemented method for securely storing information exchanged between a user device and a server on a network, the method comprising the steps of: encrypting, by a first security application associated with a data-collection application, a data element using a first level storage key to generate an encrypted data element, wherein the data element comprises (i) information provided by the server to the user device or (ii) data that is used for delivery of information from the user device to the server, and wherein the data-collection application is associated with a first client application executing on the user device; storing the encrypted data element in a first file in a sandbox comprising a portion of a file system of the user device, the portion being accessible only by the first client application; encrypting the first level storage key using a second level storage key; storing the encrypted first level storage key in a second file in the sandbox; and upon request from the data-collection application: (i) decrypting the encrypted data element to generate the data element; and (ii) providing, by the first security application, the decrypted data element to the data-collection application.
 2. The method of claim 1, wherein an encryption procedure used for encrypting the data element is different from an encryption procedure used for encrypting the first level storage key.
 3. The method of claim 1, wherein the first security application comprises at least one obfuscating code segment.
 4. The method of claim 1, wherein the data element comprises any of: a public key of the server, the public key for encrypting information to be transmitted via the first client application to the server; a private key of the data-collection application, the private key for generating a signature for the information to be transmitted by the server; wherein the private key of the data-collection application is used for decrypting information received by the first client application; wherein the public key of the server is used for validating information received from the server using the signature transmitted by the server; or a digital certificate associated with the first client application.
 5. The method of claim 1, wherein the data element comprises any of: a message identifier history used in performing an anti-replay check; a root-signature list used in determining whether the user device is rooted; a malware signature list, used in determining whether the user device contains malware; a digital certificate associated with the client application; and or an identifier of the user device or a location of the user device.
 6. A computer-implemented method for securely storing information exchanged between a user device and a server on a network, the method comprising the steps of: encrypting, by a first security application associated with a data-collection application, a data element using a first level storage key to generate an encrypted data element, wherein the data element comprises (i) information provided by the server to the user device or (ii) data that is used for delivery of information from the user device to the server, and wherein the data-collection application is associated with a first client application executing on the user device; storing the encrypted data element in a first file in a sandbox comprising a portion of a file system of the user device, the portion being accessible only by the first client application; encrypting the first level storage key using a first master storage key; storing the encrypted first level storage key in a second file in the sandbox; and upon request from the data-collection application: (i) decrypting the encrypted data element to generate the data element; and (ii) providing, by the first security application, the decrypted data element to the data-collection application.
 7. The method of claim 6, further comprising dynamically generating the first master storage key.
 8. The method of claim 7, further comprising: dynamically generating by a second security application that is associated with the user device and with a second client application installed on the user device, a second master storage key corresponding to the second client application, the second master storage key being unable to decrypt any data not encrypted by the second master storage key.
 9. The method of claim 6, wherein the first security application comprises at least one obfuscating code segment.
 10. The method of claim 6, wherein the data element comprises any of: a public key of the server, for encrypting information to be transmitted via the first client application to the server; a private key of the data-collection application, for generating a signature for the information to transmitted by the server; the private key of the data-collection application, for decrypting information received by the first client application; the public key of the server, for validating information received from the server using the signature transmitted by the server; or a digital certificate associated with the first client application.
 11. The method of claim 6, wherein the data element comprises any of: a message identifier history used in performing an anti-replay check; a root-signature list used in determining whether the user device is rooted; a malware signature list used in determining whether the user device contains malware; a digital certificate associated with the client application; or an identifier of the user device or a location of the user device.
 12. A computer-implemented method for securely storing information exchanged between a user device and a server on a network, the method comprising the steps of: encrypting, by a first security application associated with a data-collection application, a data element using a first level storage key to generate an encrypted data element, wherein the data element comprises (i) information provided by the server to the user device or (ii) data that is used for delivery of information from the user device to the server, and wherein the data-collection application is associated with a first client application executing on the user device; storing the encrypted data element in a first file in a sandbox comprising a portion of a file system of the user device, the portion being accessible only by the first client application; encrypting the first level storage key using a dynamically generated master storage key; storing the encrypted first level storage key in a second file in the sandbox; and upon request from the data-collection application: (i) decrypting the encrypted data element to generate the data element; and (ii) providing, by the first security application, the decrypted data element to the data-collection application.
 13. The method of claim 12, wherein the first security application comprises at least one obfuscating code segment.
 14. The method of claim 12, wherein the data element comprises any of: a public key of the server, for encrypting information to be transmitted via the first client application to the server; a private key of the data-collection application, for generating a signature for the information to be transmitted by the server; the private key of the data-collection application, for decrypting information received by the first client application; the public key of the server, for validating information received from the server using the signature transmitted by the server; or a digital certificate associated with the first client application.
 15. The method of claim 12, wherein the data element comprises any of: a message identifier history used in performing an anti-replay check; a root-signature list used in determining whether the user device is rooted; a malware signature list used in determining whether the user device contains malware; a digital certificate associated with the client application; or an identifier of the user device or a location of the user device.
 16. A computer-implemented method for securely storing information exchanged between a user device and a server on a network, the method comprising the steps of: storing, in a first file in a sandbox, in an encrypted form, by a security application associated with a data-collection application associated with a client application executing on the user device, a data element, wherein the data element comprises: a message identifier history used in performing an anti-replay check, a root-signature list used in determining whether the user device is rooted, a malware signature list used in determining whether the user device contains malware, a digital certificate associated with the client application, and an identifier of the user device or a location of the user device, wherein the sandbox comprises a portion of a file system of the user device, the portion being accessible only by the client application; and upon request from the data-collection application: (i) decrypting the encrypted data element; and (ii) providing, by said security application, the data element to said data-collection application. 